package com.burgeon.backend.SHOPBACKEND.mappers;

import com.burgeon.backend.SHOPBACKEND.entity.*;

import java.util.List;

public interface BackendGoodsMapper {

    Integer upGoodsVideo(String id,String video);

    Integer upGoodsLiveId(String id,String lid);

    String findGoodsLiveId(String id);

    String getGidByCode(String code,String token);

    List<Goods> getExemptionMailList(String account);

    Integer freeShipping(String gid,String value);

    Integer changeAllLabel(String id,String label);

    List<Goods> findGoodsDataByClass(String name,String account);

    Goods findGoodsDataByCode(String code,String account);

    Integer getGoodsMaxItemImgNumByGid(String id);

    Integer delGoodsItemImg(String id);

    List<GoodsItemImg> getGoodsItemImg(String gid);

    Integer addGoodsItemImg(GoodsItemImg goodsItemImg);

    List<Classification> GetClassificationByUse(String account,String isUse);

    String getGoodsIdByCode(String code,String account);

    Integer getGoodsMaxBannerNumByGid(String id);

    Integer upGoodsCacheUse(String code,String account,String use);

    List<Banner> getBanner(String id);

    Goods getGoodsById(String id);

    Integer delGoodsBanner(String id,String token);

    Classification findGoodsByCode(String code,String account);

    List<Classification> GetClassification(String account);

    Integer addClassification(Classification classification);

    Integer upGoodsState(String id,String isPutaway);

    Integer upGoodsImg(String id,String img,String attributeImg);

    Integer addGoodsBanner(GoodsBanner goodsBanner);


    List<GoodsItem> findIdByGid(String gid);

    Integer DeGoods(String id);

    List<GoodsSize> GetGoodsSize(String id);

    List<GoodsItem> GetGoodsItem(String id);

    String GoodsCount(String account);

    List<Goods> getGoodsAll(int start,String account);


    void updateGoods(Goods goods);

    /**根据Id删除GoodsItem*/
    Integer DelGoodsItem(String id);

    Integer DeGI(String gid);



    /**根据id修改GoodsItem*/
    void UpGoodsItem(GoodsItem goodsItem);

    /**根据id查询goodsSize*/
    List<GoodsSize> findGoodsSize(String id);

    /**修改goodsSize*/
    Integer UpGoodsSize(GoodsSize goodsSize);

    /**根据giid删除goodsSize*/
    Integer DeGoodsSize(String giid);

    Integer addGoods(Goods goods);

    Integer addGoodsColor(GoodsItem goodsItem);

    Integer addGoodsSize(GoodsItem goodsItem);


    Integer changeAllType(String gid, String type);

    Integer changeAllActity(String gid, String activityID,String activity);
}
